package indi.kider.server.apabus.service.related;

import indi.kider.common.model.apartment.Houses;
import indi.kider.common.model.apartment.HousesMsg;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import pers.vankid.common.model.base.CommonResponse;

/**
 * Created by shixj on 2018/5/14.
 */
@FeignClient(value = "apartment")
public interface HouseService {

    @GetMapping(value = "apart/houses/{housesId}")
    CommonResponse<HousesMsg> getHousesMsgById(@PathVariable(value = "housesId") Long  houseId);

    @PutMapping("/apart/houses")
    CommonResponse modifyHouses(@RequestBody Houses houses);
    @PutMapping("/apart/houses/state")
    CommonResponse updateHouseState(@RequestBody Houses houses);
}
